| Total Complexity | 1 |
| Total Lines | 13 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | import {Observer} from '@enbock/state-value-observer/ValueObserver'; |
||
| 4 | |||
| 5 | export default class Presenter { |
||
| 6 | moduleState: Observer<typeof React.Component | null>; |
||
| 7 | |||
| 8 | constructor(moduleState: Observer<typeof React.Component | null>) { |
||
| 9 | 2 | this.moduleState = moduleState; |
|
| 10 | } |
||
| 11 | |||
| 12 | present() { |
||
| 13 | 1 | const model: Model = new Model(); |
|
| 14 | 1 | model.module = this.moduleState.value; |
|
| 15 | |||
| 16 | 1 | return model; |
|
| 17 | } |
||
| 19 |